package main

import (
	//"context"
	"flag"
	"github.com/smallnest/rpcx/server"
	"rpcx_go_examples/service"
)

var (
	addr = flag.String("addr", "localhost:8997", "server address")
)

func main() {
	flag.Parse()

	s := server.NewServer()
	s.Register(new(service.Echo), "")

	s.Serve("tcp", *addr)

}
